package sample.testMaterialList
{

	import flash.display.DisplayObject;

	import org.abc.interfaces.IListView;
	import org.abc.uiCore.AbcBindView;
	import org.abc.uiCore.list.ListModel;
	import org.abc.uiCore.list.MaterialListView;
	import org.abc.uiCore.vo.ListVo;

	import sample.ItemCP_CPS;

	/**
	 * @describe  	...
	 * @author  	Mr.zheng
	 * @website 	http://blog.sina.com.cn/zihua2007
	 * @time		2011-8-25 10:11
	 */
	public class MaterialList_CPS extends AbcBindView
	{
		private var _list:IListView;
		private var _list2:IListView;

		public function get list():IListView
		{
			return _list;
		}

		public function MaterialList_CPS(CP:Class, model:ListModel)
		{
			/** bind的过程，将素材中所有的对象都绑定到this中。包括所有cp
			 * 	前缀的对象
			 * */
			this.bindView(new materialList_CPS);

			_list=new MaterialListView();
			//这里特别要注意一下，虽然_list里面没有显示对象，_list放到舞台上触发addStageEvent
			this.addChild(_list as DisplayObject);
			var listVo:ListVo=new ListVo();
			listVo.CP=ItemCP_CPS;
			listVo.model=model;
			listVo.pageNum=4;
			listVo.contain=this;
			_list.setParams(listVo);

		}
	/* public function */

	/* override function */

	/* private function */
	}

}